package com.jx.driving.response;

import java.util.List;

import com.jx.driving.message.TimeTerminalResponseMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedListAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;
import com.jx.driving.request.domain.Parameter;

/**
 * 查询终端参数应答
 * 
 * @author shenliuyang
 *
 *         2016年8月12日下午5:57:19
 */
@TerminalAnnotation
public class Terminal0x0104Response extends TimeTerminalResponseMessage {

    @WordAnnotation(order = 1)
    private int sequence;// 流水号

    @ByteAnnotation(order = 2)
    private short count;// 参数个数

    @LimitedListAnnotation(order = 3)
    private List<Parameter> parameterList;

    public int getSequence() {
	return sequence;
    }

    public void setSequence(int sequence) {
	this.sequence = sequence;
    }

    public short getCount() {
	return count;
    }

    public void setCount(short count) {
	this.count = count;
    }

    public List<Parameter> getParameterList() {
	return parameterList;
    }

    public void setParameterList(List<Parameter> parameterList) {
	this.parameterList = parameterList;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0104Response [sequence=").append(sequence).append(", count=").append(count)
		.append(", parameterList=").append(parameterList).append("]");
	return builder.toString();
    }

}
